<%@ page language="java" %>

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> 
<script language="JavaScript">
   function doSubmit(theForm,cntOID,cntVersion){
     var theURL="/cm/startReviewWF.do?reqParam=_process_content&ssp_process_oid="+theForm.selectedOid.value+"&BV_II_Revision="+cntVersion+"&BV_II_GUID="+cntOID; 
     theForm.action='<html:rewrite page="'+theURL+'" />';

     theForm.method = "post";
     theForm.submit();
     return false;
   }

   function closeWindow() {
     self.close();
   }


</script>

<jsp:useBean id="processMappingView" scope="request" type="com.broadvision.web.util.ViewDynaBean"/> 

<table class="zoneFive" width="100%" border="0" cellspacing="0" cellpadding="0" summary="content area">
  <tr> 
  <td valign="top" width="100%">
		  
  <div class="pageTitle"><bean:message bundle="cm.messages" key="cm.content.processmapping.pageTitle" /></div>
  <div class="pageSubtitle">
    <span class="left"><bean:message bundle="cm.messages" key="cm.content.processmapping.process" /></span>
    <span class="right">&nbsp;</span>
  </div> 
           
<html:form action="/cm/cmProcessMapping.do">
  <table class="labelForm" width="100%" border="0" cellspacing="0" cellpadding="0" summary="Form detail information">
    <tr>
      <td valign="top" width="25%" class="label"><bean:message bundle="cm.messages" key="cm.content.contentName" /></td>
      <td valign="top" class="labelField" width="75%"><bean:write name="processMappingView" property="contentName"/></td>
    </tr>
    <tr>
       <td width="30%" class="label"><bean:message bundle="cm.messages" key="cm.content.processModelName" /></td>
       <td class="labelField" width="70%">

	<html:select property="selectedOid">
  	  <html:optionsCollection name="processMappingView" property="options"/>
	</html:select>

        </td>
      </tr> 
      <tr>
        <td class="label" width="30%">&nbsp;</td>
        <td class="labelField" width="70%">
          <html:button property="closeWinBtn" styleClass="inputButton" onclick="javascript:closeWindow();">
            <bean:message bundle='cm.messages' key='button.cancel' />
          </html:button>

          <input type="button" class="titleButton" name="submitForReviewButton"
             value='<bean:message bundle="cm.messages" bundle="cm.messages" key="button.submit"/>' 
              onclick="return doSubmit(this.form,'<bean:write name="processMappingView" property="guid"/>','<bean:write name="processMappingView" property="version"/>')" > 
        </td>
      </tr> 

  </table>
</html:form>
		  
  <br>
		  
  </td>
  </tr>
</table>  
